<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Edit Server</title>
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}">
  </head>
  <body>
    <h1>Edit Server</h1>
    <form method="POST">
      <label for="hostname">Hostname:</label>
      <input type="text" id="hostname" name="hostname" value="{{ server.hostname }}" required><br>
      <label for="bmc_ip">BMC IP:</label>
      <input type="text" id="bmc_ip" name="bmc_ip" value="{{ server.bmc_ip }}" required><br>
      <label for="username">Username:</label>
      <input type="text" id="username" name="username" value="{{ server.username }}" required><br>
      <label for="password">Password:</label>
      <input type="text" id="password" name="password" value="{{ server.password }}" required><br>
      <label for="use_lanplus">Use LAN Plus:</label>
      <input type="checkbox" id="use_lanplus" name="use_lanplus" {% if server.use_lanplus %}checked{% endif %}><br>
      <input type="submit" value="Update Server">
    </form>
    <a href="{{ url_for('index') }}">Back to Home</a>
  </body>
</html>

